using MongoDB.Driver;
using TangMonk.Models;

namespace TangMonk.Component;

public abstract class LoginStrategy
{
    protected IMongoCollection<User> UserCollection { get; }
    public abstract bool CanHandle(string identifier);
    public abstract RequestUserResult Verify(string identifier, string password);

    protected LoginStrategy(IMongoCollection<User> userCollection)
    {
        UserCollection = userCollection;
    }
}